<#include "/layout/layout.ftl">
<#import "/layout/macro.ftl" as macro>
<#import "/layout/select.ftl" as my/>
<#assign css>
    <style>
    </style>
</#assign>
<@layout title="用户充值" active="userRecharge">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            用户充值
        </h1>
        <ol class="breadcrumb">
            <li><a href="/"><i class="fa fa-home"></i> 管理后台</a></li>
            <li><a href="/userAccount/userBalance"><i class="fa fa-list-ul"></i> 用户余额列表</a></li>
            <li class="active"><i class="fa fa-table"></i> 用户充值</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <!-- Default box -->
        <div class="box box-primary">
            <div class="box-header">
                <form class="form-horizontal form-edit" method="get" action="/userRecharge/index" id="searchForm">
                    <div class="form-group" style="margin-top:10px;">
                        <div class="col-sm-2">
                            <input placeholder="请输入手机号" id="phone" name="phone" class="form-control" type="text"
                                   value="${searchVO.phone!}">
                        </div>
                        <div class="btn-group">
                            <button type="submit" class="btn btn-primary" data-btn-type="search">查询</button>
                            <button type="button" class="btn btn-default" data-btn-type="reset"
                                    onclick="javascript:$('#searchForm')[0].reset()">重置
                            </button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box-body">
                <table class="table table-striped">
                    <tr>
                        <th>手机号</th>
                        <th>明细类型</th>
                        <th>金额</th>
                        <th>交易类型</th>
                        <th>途径</th>
                        <th>创建时间</th>
                    </tr>
                    <#list pageInfo.list as item>
                        <tr>
                            <td>${item.phone!}</td>
                            <td>入账</td>
                            <td>${item.amount!}</td>
                            <td>充值</td>
                            <td>${convert('ACCOUNT_WAY',item.accoutWay) !}</td>
                            <td>${(item.createDt?string('yyyy-MM-dd HH:mm:ss'))!}</td>
                        </tr>
                    </#list>
                </table>
            </div>
            <!-- /.box-body -->
            <div class="box-footer clearfix">
                <@macro.page pageInfo=pageInfo url="/userRecharge/index" />
            </div>
        </div>
        <!-- /.box -->

    </section>
    <!-- /.content -->
</@layout>
